package com.woniuxy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.mapper.provider.NoticeProvider;
import com.work.framework.pojo.Notice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author: wanghao
 * @Date: 2019/9/23 10:46
 */
@Repository
@Mapper
public interface NoticeMapper extends BaseMapper<Notice> {

//    @Select("select * from notice where s_uid = #{sUid} and r_uid = #{rUid} and m_type = #{mType} and flage=1")
    @SelectProvider(type = NoticeProvider.class, method = "select")
    List<Notice> findNoticeById(Notice notice);
}
